#include "common/response.hpp"

std::string Response::success(const std::string& message) {
    return message;
}

std::string Response::error(const std::string& message) {
    return message;
}

std::string Response::jsonSuccess(const nlohmann::json& data) {
    nlohmann::json response;
    response["data"] = data;
    return response.dump();
}

std::string Response::jsonError(const std::string& message) {
    nlohmann::json response;
    response["error"] = message;
    return response.dump();
}


